package com.example.securityservice;

import org.springframework.security.core.Authentication;

import javax.servlet.http.HttpServletRequest;

/**
 * @author LiuShanshan
 * @version V1.0
 * @Description
 */
public interface MyService {
    /**
     * 自定义权限判断，不满足条件返回false
     * @param request
     * @param authentication
     * @return
     */
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}
